package net.yla.smartbus.module.ba.duty.query;

import io.swagger.models.auth.In;
import lombok.Data;
import net.yla.smartbus.core.base.BaseQuery;
import org.apache.commons.lang.StringUtils;

import java.io.Serializable;
import java.util.List;

/**
 * @description:
 * @author: Yee
 * @date: 2021/6/17 14:47
 */
@Data
public class DutyQuery extends BaseQuery implements Serializable {

    /**
     * 分组id
     */
    private Integer groupId;


    /**
     * 职务名称
     */
    private String name;

    /**
     * 职务ID
     */
    private Integer dutyId;


    /**
     * 子分组id集合
     */
    private List<Integer> groupIdList;


    public String getName() {
        return StringUtils.isNotBlank(name) ? name.trim() : null;
    }

}
